﻿#region Usings
using BK.Model;
using BK.Repositories.Abstract;
#endregion

namespace BK.BlusinessLogic
{
    public class TargetsBl
    {
        #region Readonly & Static Fields
        private readonly ITargetsRepository _targetsRepository;
        #endregion

        #region C'tors
        public TargetsBl(ITargetsRepository targetsRepository)
        {
            _targetsRepository = targetsRepository;
        }
        #endregion

        #region Instance Methods
        public Target GetBy(int userId, string name, int? parentId)
        {
            return _targetsRepository.GetBy(userId, name, parentId);
        }
        #endregion
    }
}